Add error handler to some dangling promise chains.
Merge pull request #38 from tildeio/add-error-handler

Add error handler to some dangling promise chains.