Just saying for a second that Brexit is stopped due to this, I think the only course of action would be to re-run the original referendum (although I do not think this a good idea going forward but I have no other solution). Isn't in the whole of the UK's interests to ensure that the result is not tainted regardless of the outcome?