Add error handler to some dangling promise chains.