ensure we're inside an exception handler