Corporate tax avoidance is a great example of this. The only feature you need your laws to have to facilitate corporate tax avoidance is the ability to incur a deductible expense to an offshore entity. The only thing corporate tax law loophole closing ever achieves is to make corporate tax avoidance procedures more complicated, thus making them only accessible to more sophisticated tax avoiders. There is no conceivable way of closing these “loopholes” without extreme protectionism or isolationism. It would basically require ending globalization or at least removing your country from the globalized economy. A solution that most people would find completely unacceptable.