iOS: Fix error where files were not removed on abort