When a user's startup_cmd is a little more complex, e.g. a shell script, and forks off several processes, then killing only the main child pid might leave unwanted processes behind on exit. Not all children will notice when their parent or the compositor has quit.
To fix this, put startup_cmd into its own session and process group, and kill the entire group on exit.
45XAP6XROOLWBRNKXYNTC4QFR6AP6PNRXU3XC7PBQKAEQJ3LOZ6AC