for (final Method method : methods) {
log("callshutdown/method", new OptionInfo("method", method.getName()));
// Init methods will be marked by the corresponding annotation.
final Shutdown annotation = method.getAnnotation(Shutdown.class);
if (annotation != null) {
log("callshutdown/method/shutdownannotation", new OptionInfo("method", method.getName()));
try {
method.invoke(plugin, new Object[0]);