exit only from main()