Actually this was the way we solved it. Although, that's still quite risky and I'd not recommend it as a good workaround.
I would say you can get a long way with trying to prevent your own code from emitting interrupts. But how do you stop libraries or the JVM from emmiting them?
The problem is that the interrupts may be used by library or framework code that you're not aware of, in hard-to-reproduce edge cases.