Logstash is meant to be a service that continuously processes data, so there is not a built-in way to stop it after processing a file. It is ok to kill it manually or via a script.
There are a bunch of other posts covering it if you want to dig in more: