Fixes autodelete of group upon removing last member.

Also adds error messages