Merge pull request #56 from cowboy129/master

Properly close tcp conn when close-timeout or receive Disconnect Packet
Avoid disconnect cycle