[server] Close socket when incomming handshake failed.