fix: handle disconnection while its connecting