cleanup on thor tasks