def close(self):
try:<EOL><INDENT>self.id2sims.close()<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>del self.qindex<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>
Explicitly release important resources (file handles, db, ...)