Refactored clients receiveLoop out of CSharpFacade