rename packet sampling macro to PKT_SAMPLING
ALWAYS release ThreadPool before PollMgr

some running task might want to access PollMgr (update_mode),
causing SIGSEGV