issue #197: catch Swift exceptions when sending mail