[3.8] Fix disconnection on session delete