The EU must learn from its mistakes over the past decade