Implement dtor via range based loop