added trycatch to stop the parallel sim from bonking