adds begin rescue block to worker execute