You can use the consoleLib.closeActiveWindow() system function to clear the currently active window from the screen (see activeWindow (EGL system variable)), The function releases the resources associated with that window, and activates the previously active window.
After you call consoleLib.closeActiveWindow(), the window cannot be reopened with consoleLib.openWindow() or consoleLib.openWindowByName().
You cannot close the SCREEN window.
consoleLib.closeActiveWindow( )