Only keep a single instance of each plugin around instead of creating a new one every time. Also let plugins specify a functions to run on unload.