private void closeListener(TransactionListener tl) {
    try {
      tl.close();
    } catch (VirtualMachineError err) {
      SystemFailure.initiateFailure(err);
      // If this ever returns, rethrow the error. We're poisoned
      // now, so don't let this thread continue.
      throw err;
    } catch (Throwable t) {
      // Whenever you catch Error or Throwable, you must also
      // catch VirtualMachineError (see above). However, there is
      // _still_ a possibility that you are dealing with a cascading
      // error condition, so you also need to check to see if the JVM
      // is still usable:
      SystemFailure.checkFailure();
      logger.error("Exception occurred in TransactionListener", t);
    }
  }
sets {@link TXStateProxy#setInProgress(boolean)} when a txContext is present. This method must
only be used in fail-over scenarios.

@param progress value of the progress flag to be set
@return the previous value of inProgress flag
@see TXStateProxy#setInProgress(boolean)
geode-core/src/main/java/org/apache/geode/internal/cache/TXManagerImpl.java