bugfix. EXIT_ON_CLOSE constraint added to mainframe