sessionmanager: remove useless loop in the TCP listener thread.
sessionmanager: add support for a Kill command that would kill the session manager threads + stop the app.