finishes the app