fixes: stability

Solved a few bugs related to the loading and closure of the App