allow errors to be handle correctly.
added missing deferred reference.
Merge pull request #1 from oodgaard/deferred-fix

Request error handling fix.