Close socket properly when a client disconnects
Prevent dereferencing NULL pointer in TcpSocket.disconnect
Merge pull request #4 from anttihirvonen/qt-preview

Close socket properly when a client disconnects