Emergency shutdown system