Better handle a channel close on the client side and enforce the max frame size.