erlang: Make framed_transport not write out its buffer when closed This complicates the code, and users can be expected to call flush when they want to write data to the underlying transport.