Improve thread pool error handling
Remove export