[bugfix] deadlock when connect init done when the peer close at the same time