diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -262,6 +262,7 @@ Pepper.prototype._callLogon = function(payload, callback) {
   var self = this;
 
   this._api(this._baseUrl + 'logon', payload, function(err, data) {
+    if (err)  return callback(err);
     if (data) self.status = data;
 
     if (data.clientState === Pepper.stateCodes.AUTH) {
Added error handler for logon