Unfortunately GroupWise does not currently support an OnClose event. We have submitted a request to Novell that this event be exposed.
You could achieve something similar by creating an applet that placed a button on the mail toolbar. When pressed, it could ask the user if the message is to be archived. You could probably also have the applet close the view once the appropriate action had been taken.
I hope this helps.