Improve smart close

quit if RO and last window
More improvement to smart close