Finish the application