Log an error if the pmd command line tools fails to run

Instead of ignoring errors, raise an exception and then log an error if
data is detected on standard error while running the pmd command line
tool.