end the session when the buffer is closed, closes #78
be consistend about signal naming
Merge pull request #80 from fauno/end-session-on-buffer-close

End session on buffer close