Application will exit on close