Catch exceptions and email them

Closes #5