added flag to know if app has been finalized