Added disconnect message sending before closing socket
Merge pull request #13 from blub0hr/master

Disconnect message before closing socket