code: public static void shutdown(final LoggerContext context) {
          if (context != null && context instanceof Terminable) {
              ((Terminable) context).terminate();
          }
      }
docs: Shutdown the logging system if the logging system supports it.
  
  This call is synchronous and will block until shut down is complete.
  This may include flushing pending log events over network connections.
  
  @param context the LoggerContext.
  @since 2.6