Do not try to close the last window
Merge pull request #10 from IvanUkhov/last-window

Do not try to close the last window