Added more opening handshake request checks.
Fixed the opening handshake.