fixed indentation
removed unused imports
re-added shutdown_plugin() which disappeared in 59f87f9c8b55dc29a6586219be8a0e23b7e02cd7