Better Error trapping for workers