Closing connection on test socket.