Thanks to the various people who replied to my query regarding "clean" exit from the SunView environment via a button in a SunWindows application. The basic technique we implemented was to issue a kill for the pid under which SunView was running. We had passed the pid via an environmental variable.