add fatal error detection support