v.19.16Code Cleanup

Wait for All Scheduled Jobs, Which Are Using Local Objects, If Threadpool::schedule(...) Throws an Exception

Wait for all scheduled jobs, which are using local objects, if ThreadPool::schedule(...) throws an exception. Rename ThreadPool::schedule(...) to ThreadPool::scheduleOrThrowOnError(...) and fix comments to make obvious that it may throw. #7350 (tavplubix)