pub fn handle_exec_error(command: &str) -> impl FnOnce(IoError) -> Error + '_