Add a method for waiting for error handling to finish
Sometimes we need to wait for error handling in problematic threads finish. The
ThreadManager singleton has a good overview of threads and errors they caused or
didn't cause so it can easily serve such request.