Added close to session and connection