Handle the handshake packet