Error logging for unhandled, rejected promises