<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _disconnect(self, exc_info=False):
 """Disconnect and cleanup."""

        if self._stream:
            self._stream.close(exc_info=exc_info)