Now linked with the ConsoleWindow. stdout/stdin removed.
Reference to ConsoleWindow is passed on to the QueryWorker threads