#167 - did correct shutdowning of sctm_clients. Did code refactoring