add fatal exception handler