Catch errors when sweeping the mail queue to avoid notifications to remain unsent until the bad message has been manually removed. With the catch, the bad message remains in the queue and an error message sent to the log, and the sweeper proceeds with the next ones.