Select IM STUCK, go back to the castle, get caught, and you'll be forced to wake up.You forgot to mention there's a nasty glitch if you go straight to the final boss. One of the ending scenes takes place in the school, the file starts on a Saturday. See the problem? You'll get booted from the school and game will glitch, MC won't appear at all and the game act as if your still in otherworld castle(Meaning you can't wake up). If you reset to the castle of illusion then wake up the game will still be glitched and the MC will only walk in one direction and you can't go through doors. Overall it's best to advance you game to a weekday before you end it.
that's how i fixed it.