Don't print before initializing the console

Fixes an exception where we try to print to the console window with an invalid handle.