Use cliparse's new API, and handle error cases.