disconnect client when handshake failed