run engine.dispose after forking