private void cancelInactivityCheck() {
        // Disregard any pending checks - we're shutting down
        ScheduledFuture checker = inactivityRef.getAndSet(null);
        if (checker != null) {
            LOG.finest("Inactivity timer canceled");
            checker.cancel(true);
        }
    }