Fixed exception

If shutdown was called before ever calling startNewGame the uci
crashed.