Finalizing application.