Overflow during handshake is an invalid situation, so fix the NIO handshake. Also improve the error message with the actual status.