The EU has flaws in its system, but this isn't going to be good for the UK moving forward, economically and politically. If Boris becomes the next prime minister in October, then the far-right will be in power. That's equivalent to the Republicans getting into the White House.
Anyway, this is all Cameron's fault. He allowed this referendum to happen because he was the one who announced having one. He was sure that the remain vote would win. And even though the prime minister has the authority to reject the refenderum results, doing so would be political suicide for him, as it would only hasten the Tories' favorite, Boris, to have a strong possibility of being prime minister. He had to honor it.
There are already murmurings of other EU members, like France, Netherlands, and some other countries to get out of the EU, so a domino effect is a possibility, although interestingly enough, Northern Ireland and Scotland want to gain independence and stay in the EU, in light of UK leaving the EU. It benefits them more to stay in the union.
@LabouredSubterfuge I'd like to hear your thoughts on all of this when you got the time.