Added missing exception handler for HTTPError exceptions and solved race condition when unpausing