def close(self):
if self.host is None:<EOL><INDENT>raise ModHostError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>super(ModHost, self).close()<EOL>if self._started_with_this_api:<EOL><INDENT>self.host.quit()<EOL><DEDENT>else:<EOL><INDENT>self.host.close()<EOL><DEDENT>
Remove the audio plugins loaded and closes connection with mod-host.

.. note::

    If the mod-host process has been created with :meth:`~pluginsmanager.observer.mod_host.ModHost.start()`
    method, it will be finished.