fixes to handle exceptions in plugins + perfdata output