BugFix: close a socket after sending DISCONNECT.