Added default close operation. EXIT_ON_CLOSE