Put some exception handling around the visualization step.  Fixes #3.