Implement the method to close the connection to the server wrapper