Call plugin_misc_cleanup() correctly when switching interface or output plugins.