App closes after finished.