jrouge/WFU-5238/Better_tracking_of_errors_in_Mongo_delayed_tasks

This is a sub pull request.