Make watcher more robust against failures in sending mail.

Fixes #22