Fixes #4366: Group form now closes when deleting the group