handleError() loops if already connected
Merge pull request #15 from hailocab/connect_loop_fix

handleError() loops if already connected