Delete duplicated views when closing a group

Fixes #23
Merge pull request #24 from SublimeText/fix-23

Delete duplicated views when closing a group