Remove session closing code