Optimized performance on the eventqueue destructor it accessed the output class excessively, performance gained is 10x