<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close(self):
 """Close the socket without sending quit message."""

        stream = self._stream
        if stream is None:
            return
        self._stream = None
        stream.close()