partial fix for console color problem

A hacky fix for #46 that doesn't work for Core CLR. I figured something is better than nothing. 
Is it possible to lock writing when you detect that the world is about to end? Maybe do something like this: prevent future writing with some variable, flush the console buffer and then restore the colors. This way there shouldn't be any more concurrency issues.

Or, redirect the console output streams (std and err) to somewhere else just before restoring the colors. You might miss some data but the world is ending anyway so it might not be important.