stop the main()