added api to prevent closing plugin class loader in server shutdown