threadpool: catch exceptions and rethrow them on calling thread
remove last openmp usages