Closing session in session manager when sever is closed.
Adding unit tests for Telnet decoder.
Added unit tests for message encoding.