Fix ios flow so that it cancels out processes properly