MiniFly:modify the exit.