the error goes to console. should there be a deferred.reject as well? also handle catch an errorCallback.