JAL-3690 - fixed state inconsistency when restarting the calcworker