normalize exception behaviour for native raf