Fix Close button bug

Fixes issue when close button (red) was used and the window wouldn't come back.
Merge pull request #6 from iamunick/patch-1

Fix Close button bug