Bug 867864 -  Add a way to report unhandled errors in promises