Inspired by the great work of Sven Hasselbach, who blogged about his XSnippet to cancel a partialrefresh, I took the JavaScript code and injected it into my SSJS Extension Project. At the moment, the code is undergoing some testing, but it seems that it is stable and ready for release.
Using a simple @CancelPartialRefresh() in your SSJS code, you can cancel the execution of code during a partial refresh at any point of your existing SSJS code.
Sweet. Keep the @ rolling