minimiseonclose option to minimize the application when the window is closed