Ensure that engines are closed after crashes.