Client: moved SSL Exception management
Client: fixed problem when tcp port already used