It has been suggested to me that on long running PHP CLI to exit after a set length of time, say 15-30 mins. This has the advantage that it does not die horribly, supervisor will restart the script and you also get the latest version of your script to run. You could also create a message that tells the script to exit, this is not always helpful if you have more then one client running.