pub fn unwrap_io<T>(msg: &str, res: Result<T>) -> T
Unwrap the value contained within the given Result and return it, else print the contained std::io::Error and exit the process.
See [std::process::exit(i32)].