You can exit an application and make the window disappear by using frame-exit or disable-frame.
CLIM 2.0 User Guide - 01 Dec 2021 19:38:58