code: function(err) {
            console.log('SOCKET ' + command +
                        '(' + debugStr(request.data, 30) + ') Exception');
            util.errorHandler(err);
  
            socket.emit('reply', {
              id: request.id,
              exception: '' + err
            });
          }
docs: Handle errors from exceptions an promise rejections