this.socket.end() needs guard against undefined
this.socket.end() needs guard against undefined

When calling reconnect() the first time, this.socket is not defined. The code I found that broke on this was using https://github.com/orlandov/node-amqp-plus to handle reconnections and only called the reconnect() to avoid having separate paths for connect() and reconnect().

This behavior seems to have changed in d729b384879b7e4e96a1ba07152d1f8a4d1caeed
remind101/node-amqp,xebitstudios/node-amqp,zinic/node-amqp,postwait/node-amqp,postwait/node-amqp,albert-lacki/node-amqp,xebitstudios/node-amqp,albert-lacki/node-amqp,albert-lacki/node-amqp,zinic/node-amqp,hinson0/node-amqp,hinson0/node-amqp,zkochan/node-amqp,zkochan/node-amqp,xebitstudios/node-amqp,postwait/node-amqp,hinson0/node-amqp,zkochan/node-amqp,remind101/node-amqp,zinic/node-amqp,remind101/node-amqp