Changed SETTLE_PREVIOUS to CLOSE_PREVIOUS, promoted to Session