<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def shutdown(self):
 """Disconnect all connections and end the loop :returns: None :rtype: None :raises: None """

        log.debug('Shutting down %s' % self)
        self.disconnect_all()
        self._looping.clear()