Improve error logging when status is not known.