add sentry error handling to fix #61
only log errors to sentry if not in debug mode.
Merge pull request #213 from balanced/error-handling

Error handling