fix CloseSecureChannel
handling of tcp packet containing more than 2 messages