More robust error logging.