'called from complete and abort.  clean up and shutdown'

def tear_down(self):

    self.kill_watchdog()
    if (self.recipe_id != '0'):
        self.upload_recipe_files()
        self.bkr_proxy.recipe_stop()
    os.remove(self.state_file)
