finish handshake packet parser