Sub SetWindowAutoClose( exit_on_close )
Sets whether the close button on the window closes it.