avoid calling PollManager::shutdown() repeatedly (fix #217)