In theory, you can use the Windows Script Host to sends one or more keystrokes (close window) to the active window. You should be able to find some sample code in web about the Sendkeys method.
We don’t know the impact of the SendKeys method or closing the GroupWise from C3PO. Please be aware of unpredictable behavior.
Hope this helps.