fixed error message
updated the monitor to avoid that it exits when getJobState raise exception