cleanup multi-term setup