pub fn run_main<F>(f: F)where F: FnOnce() -> Result<()>,
Intended for use in main, calls an inner function and handles errors by printing them.
main