Fix disconnection on session delete
Merge pull request #755 from romainneutron/fix-disconnection

[3.8] Fix disconnection on session delete