cleaned Session::close()