Move ThreadsManager::exit() to d'tor