Cleanup connection closing
- Destroy socket, not just close the IOSink.
- Catch all errors caused when trying to close the connection.