add better error logging for plugin failures.