Actually, looks like forgetting to call simulator.unload is the issue