code: public static void endScope(Closeable scope, @Nullable Throwable throwable) {
      traceStrategy.endScope(scope, throwable);
    }
docs: Ends the current span with a status derived from the given (optional) Throwable, and closes the
  given scope.
  
  @param scope an object representing the scope
  @param throwable an optional Throwable
  @since 0.9