Made exceptions more fine grained in the plugin loader