End of subgroups and group actions