Added handshake timeout handler.