introduce engine.stop() instead of close open.