add self-stop script