Check error-handers for exception safety
Interrupting the model with ctrl-C sometimes produces an "illegal instruction" crash instead of a clean pause. This likely because of calls inside our error handler throwing further exceptions, which isn't allowed by C++and "Errors that arise during exception handling are handled by std::terminate
". I haven't looked in depth, but when looking for calls that aren't exception-safe I bet we should start in the code that writes warnings to stdout.
Edited by Postma, Johannes Auke