added shutdown path to plugin loader #327