Error handling for job cost script