added garbage collection to session handler