Added EXIT_ON_CLOSE on frame