Add a short descriptive comment before this `if` that indicates what the intent is and why it's done with `os.kill` and a timer.  It will help anyone who in the future has to revisit this code.