Modified plugin so server can shutdown and restart and the plugin doesn't need to be reloaded.