Invalidate the session when logging out, fix an issue where heartbeats could be delayed forever in busy channels