Better handling of plugin failures, with fix for junitxml.