public boolean closeSession(@NotNull DeviceType deviceType, @NotNull CloseReason closeReason) {
        UserSession session = deviceTypeToSession.remove(deviceType);
        if (session != null) {
            return session.close(closeReason);
        }
        return false;
    }
@return true if the session was online
turms-gateway/src/main/java/im/turms/gateway/domain/session/manager/UserSessionsManager.java