Added error check to status evaluation