htmlget: some error handling