Comment out debug code due to NPEs with some events. Fix closing inventory UIs crashing client