fixing finalization of parallel simunations