added .close() method to the ServerConnector