fix do_exit to use argument validation