FWIW, in spring2025 still, I noticed this same problem, went in search of an answer, land here. I didn't change my script to add sys.exit(). I ran it, quick run, saw no Python tasks in task manager. I hit Refresh in the Task Scheduler Actions and status goes back to the expected Ready.
So, a bug, still.