Issue6

closes #14 
#5 and #6 are the formatter implementation of exit and disconnect events