Add a way to close the socket connection
Add a way to close the socket connection