Pull request from chasonr: if the curses interface did a full screen update while the game was ending, it could attempt to refresh windows that had already been removed. For #if PDCURSES, raw_print() could attempt to write to the message window after it had been removed. [Why is raw_print() using the message window at all? Isn't the main point of it to bypass that?] Fixes #881