Do proper session listener maintenance and term.