added a call to clear the timeouts whenever a reconnect happens
this prevents the  from completing and closing the connection
Merge pull request #1 from camacho/patch/add-clear-onreconnect

added a call to clear the timeouts whenever a reconnect happens