One idea I've been considering is a developer-supplied callback function that's invoked between ops, to allow pre-loading of memory areas, or calls to cooperative multitasking yields. It's still only a vague idea right now, but some sort of extensibility like this keeps coming up as a requirement, and allowing the callback to abort the calculations would be one way of enabling your use case.
I think Advait's suggestion of using an "if" op is a lot cleaner for your needs though, since then all the logic stays in the model.