FIX: fixed typo on session close (document.removeListener should be document.removeEventListener)
Merge pull request #598 from rpl/fix/remove-listener-on-close-typo

FIX: fixed typo on session close