Kill all non-kernel threads when shutdown.