Quick fix for ending cron sessions

Made a quick fix; rather than trying to close cron sessions based on the
session id I'm closing them based on the id of the cron job itself.
Obviously, I have to make sure that the cron job is returning the id.