Prevent segfaults when a simulation blows up