log errors in testing and stop printing the graphviz output