I think immigration is a great thing, but I would have voted to leave. The EU is a great idea, but it should be limited to trade deals and trade enforcement. The single currency and the unifying political body are a bridge to far.
I don't think the Brexit is a referendum on Globalization or the Post War Order, I think it was a referendum on the limits of sovereign unity on a continent divided by many languages and cultures. The US is much less diverse and has, effectively, one language and it has trouble doing anything at the Federal level. Was there really any real hope that the EU could accomplish something an order of magnitude more grand?
Edit:
I would like to add that any democratic institution that has the power that the EU does, but the incredibly low turn out (EU turnout makes the American midterms look positively Athenian) and the high number of backlash candidates (a good number of EU MPs are actually anti-EU) that it does is doomed to be voted down by its body politic. The EU might not die, but it will for sure get scaled back.