cf-dc-api.pl: improve fatal errors