invalidateLater: don't invalidate when session closed
Merge pull request #159 from wch/session-invalidate

invalidateLater: don't invalidate when session closed