debug fatal handler