fixed Error: Cannot enqueue Handshake after invoking quit.