Log errors, and also wrap worker within try catch.