Bugfix: Escape main prime loop for work restarts too