Shutting down thread pool on signal shutdown.