Delete duplicated views when closing a group

Fixes #23