Added proper protection for multi threaded event handling