exposed close() method for server