test for fatal error