fixes #4 by preventing crashes when background processes have started. Update visualization: fix #6?