added debug logging to ShutdownGame