Clean up server logic and add clean exit
Merge pull request #1 from atlastrafficmonitor/exit

Clean up server logic and add clean exit