Handle quick shutdown with polling better.