Fix error handling in Job Controller Thread