Fix method waitForBlockingJobsAcomplished() to stop wating after timeout