added ssample test server
handled crashes when server is reject TCP connections