added runtime xapi checks for fatal under DEBUG