Make sure transform catches and logs exceptions instead of raising them.

Closes #3