No idea of the actual logistics of doing it but surely returning to immigration would be no issue at all other than a few raised eyebrows and maybe a talking to? People would have to go from departures back to immigration all the time for any number of reasons. Decided at the last minute they didn't want to travel, sudden family/personal emergency etc. I'm sure it would be common enough.