[MACH] Add retry logic to all mach api calls in the case of interruption.