write
Writes a Frame to the IEndpointInternal.
The FrameWithCloseable.close must be called when the frame has been processed and the Frame.rawBuffer is not used anymore. The IEndpointInternal must called FrameWithCloseable.close even if the frame is dropped or it somehow crashes.