add session_impl destructor