Long ago a lot of `std::exit` calls were used, which should mostly be replaced with proper exceptions.