Goodgulf:
No, I didn't write the "it was all just a dream" - but you have to admit "it was dream" was better than "the whole thing took place in the mind of an autistic child" (aka St Elsewhere).
Well, "Star Trek: Deep Space Nine" ended up suggesting that all the events of the whole seven-season series were being written on walls by a patient in a mental institution (portrayed by the same actor who played Commander Sisko) in the 1950s.
"Star Trek: Voyager" relied heavily (too heavily IMHO) on situations wherein seemingly hopeless situations were rescued by people traveling backward in time and changing history so that they never occurred. (I don't mind that concept being used very sparingly, but AFAIC it was overdone in "Voyager" episodes, including the series finale.)
Sometimes you just write the story as an obvious fantasy and don't try to explain why such unreality is being described (dream, alternate reality, future society, etc.). I once wrote a story about a girls' private school wherein the male instructors were corporally punished by the headmistress on their naked buttocks, not only in front of their female pupils but even with the assistance and participation of a few of them--I could have supplied some background about an amazonian matriarchy having risen to power in some alternate universe, but I didn't bother because the fantasy was enough for me in that case. (It was written for publication, and the one and only writing guideline I'd been given was not to get overly involved in background material.)
Girls getting their bare bottoms paddled in a 21st-century public school? That's obviously unrealistic, but I'm figuring that if the characters and their behaviors are consistent and believable within that unreality it might still be an appealing story. In those kind of situations, I'd certainly notice the unrealistic aspects but I could suspend my disbelief and nonetheless enjoy the story anyway... --C.K.