International business contract

This example is in relation to International trade. My client (X) is a corporate based in HK and is a party to an international trade transaction between A (in India) and B (in Africa). A sells goods to B through X. X facilitates the transaction by using his credit facilities in HK. [B issues 90 days LC on X and X pays to A at sight]. The primary responsibility for the trade is between A & B and X does not want to assume any risk arising from any breach of contract between them. How can X safeguard himself?