Added errno setting to remove_group function.