server shutdown and polling.