bug 1052633 - add infrastructure to throw on uncaught promise rejections