added error handling for queue program job