adding finalization of simulator