//! Private macro used for error handling.
/// Logs an error, ignores an `Ok` value.
/// Matches a result, returning the `Ok` value in case of success,
/// exits the calling function otherwise.
/// A closure which returns the return value for the function can
/// be passed as second parameter.