pub fn unwrap_register<E>(res: Result<(), E>, fatal: bool) where E: Into<Error>,
Destroys a unit result, registering the error if any.