Synchronized on connect and close in RemotingClientWrapper
Fixed conflicts