handle disconnects in connecting state