implement logFatal