Use kill instead of terminate to destroy the engine process.