Fix thread leak caused by not shutting down the thread pool