Use deferred.reject instead of try/catch.