Clear handshakePerformed flag on Close.