Adding exception handler to HttpClient