No, there's not treaty mechanism to leave the EU, I've read the treaty law.
You can leave any time you want in practice though, and were I dictator of Ireland, I would, because we trade with the UK and the US more than Europe, I would then establish trade links with China because their premier...