Support for closing windows using HAXWindow