Custom Apps Restarting

When the storage is finished during working with custom apps, the app crashed and restarted automatically.