<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def free_resources(self):
        ''' call stop to free up resources '''
        if not self.is_stopped():
            logger.info("Freeing resources: %s" % self.get_transfer_id())
            self.stop(True)