use event name instead of class object, add support for Generics events as well as Bukkit
prevent dependencies checker from running forever if a script is causing an exception.