Fix random crash
Fix random crash

mottx/XCGLogger,ymyzk/XCGLogger,tibmeister/XCGLogger,msanders/XCGLogger,skreutzberger/XCGLogger,msanders/XCGLogger,cwoloszynski/XCGLogger,pollarm/XCGLogger,BrianBatchelder/XCGLogger,tibmeister/XCGLogger,cwoloszynski/XCGLogger,twobitlabs/XCGLogger,BrianBatchelder/XCGLogger,pomozoff/XCGLogger,DaveWoodCom/XCGLogger,sportlabsMike/XCGLogger,skreutzberger/XCGLogger,msanders/XCGLogger,mottx/XCGLogger,dougbeal/XCGLogger,twobitlabs/XCGLogger,pomozoff/XCGLogger,yjkim/XCGLogger,sportlabsMike/XCGLogger,dougbeal/XCGLogger,ymyzk/XCGLogger,adonoho/XCGLogger,yjkim/XCGLogger,pollarm/XCGLogger,adonoho/XCGLogger,DaveWoodCom/XCGLogger