Fix indentation and format
Implemented exit event handling and post creation event handling
Fix log4j.xml DTD reference