Fix logging file handling
Add event handler storage queue.