See this forum post about closing GroupWise. Please note, attempting to close GroupWise from a C3PO may produce unpredictable behavior.
> Now we’d like to give the customer the option to interrupt this process.
We don’t have any sample code specific to your needs. However you should be able to place some exit statement in your import process to stop the process. Here is a sample exit statement from “Microsoft Visual Basic Script Guide”. See the guide for more information.
Microsoft® Visual Basic® Scripting Edition
Exits a block of Do…Loop, For…Next, Function, or Sub code.
Hope this helps.