--- component.py 2008-08-26 23:38:23.000000000 +0530 +++ /usr/lib/python2.6/site-packages/deluge/component.py 2008-12-02 01:36:03.000000000 +0530 @@ -177,7 +177,8 @@ for component in self.components.keys(): log.debug("Shutting down component %s..", component) try: - self.components[component].shutdown() + if self.components[component].get_state() != COMPONENT_STATE.index("Stopped"): + self.components[component].shutdown() except Exception, e: log.debug("Unable to call shutdown(): %s", e)