Output uncaught exceptions in promises to console/browser.

Before this request was hanging silently with no output wherever.