[group] clean up code; modified 'quit group'