Fixed close of app