Drop socket reference on close.

No issue.
- Prevent the unbounded memory growth caused by maintaining
  a reference to the socket object that is created on every connection.