Changing supervisor restart to sleep less than a fixed amount, and check for a pid so it knows when to properly stop.