def tearDown(self):
logging.debug('<STR_LIT>')<EOL>asyncmongo.pool.ConnectionPools.close_idle_connections()<EOL>for mongod in self.mongods:<EOL><INDENT>logging.debug('<STR_LIT>' % mongod.pid)<EOL>os.kill(mongod.pid, signal.SIGKILL)<EOL>mongod.wait()<EOL><DEDENT>for dirname in self.temp_dirs:<EOL><INDENT>logging.debug('<STR_LIT>' % dirname)<EOL>pipe = subprocess.Popen(['<STR_LIT>', '<STR_LIT>', dirname])<EOL>pipe.wait()<EOL><DEDENT>
teardown method that cleans up child mongod instances, and removes their temporary data files