Added error handling for job create and modification