What minimum checks should guard thread IDs before resuming a remote session?