def on_unexpected_error(e):  # pragma: no cover
    """Catch-all error handler

    Unexpected errors will be handled by this function.
    """
    sys.stderr.write('Unexpected error: {} ({})\n'.format(
        str(e), e.__class__.__name__))
    sys.stderr.write('See file slam_error.log for additional details.\n')
    sys.exit(1)