Handle worker failure gracefully.