log errors

Errors get swallowed in metrics, actions etc. I added a global catch to help debug these errors. Would this be useful?