fix(writer): synchronisation problem removing folder