closes #5 and #6

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