Reject the deferred if the request fails
Merge pull request #3 from LoonyPandora/master

Reject the deferred if the request fails