catch errors in event handlers (#254)
Merge pull request #272 from RemoteStorage/event-handler-catch-errors

catch errors in event handlers