various particle crash and deadlock fixes