Added handling of visualizer crash.