There is no real solution for orphaned trades.

The FXCM API has internal lists of opened and rejected trades. A trade becomes orphaned when Zorro opens one, but it does not appear in either of the two lists. So Zorro does not know if it was opened or rejected, and does not have its trade ID. Without trade ID, Zorro can not close the trade. This must be done manually. You could theoretically read the ID on the FXCM platform and enter it manually in Zorro, but that would obviously make not much sense.

The FXCM API is the only API that I know where such a situation can happen, apparently due to a bug.