Added groups.close implementation