close window properly
Merge pull request #6 from livibetter/fix-close-last-tab-close

close window properly