Fixed thread pool leak