Clean up ReadWriteCloser