cleanup manager on exit