Fix and make deleteIdleSessions job friends aware