wrap worker job with a try catch