pub async fn init<F>(log_path: Option<PathBuf>, fut: F) -> Result<()>where F: Future<Output = Result<()>> + UnwindSafe,
Initializes error and panics handling