sessionmanager: fix typo.
sessionmanager: clear the registered client list in the destructor.