Dave writes "..the next time the cookie is checked..".
The force_logout_user code is really about requiring the key to be checked on the next page load.. regardless of when "the next time the cookie is checked" at some point in the future.
In essence, the job/task could be something like:
ad_user_logout
ad_script_abort