trainer cleanup