AppServer event handling thread safe