Checking exceptions in waitUntilAllCompleted