fatal/error etc. - prefix all the errors with __func__. This allows me to unplug my 3G modem and have pppd exit correctly.