<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _on_closed(self):
 """Invoked when the connection is closed"""

        LOGGER.error('Redis connection closed')
        self.connected = False
        self._on_close()
        self._stream = None