It's possible that the port is being used by something like Nginx, but proxied through to KA Lite (including the request to /getpid/). This could lead to it trying to kill the Nginx process. Perhaps the API endpoint could be called "processinfo", and be a json structure (dictionary) with both the `PRODUCTION_PORT` and the pid? Then, the server doing the query would kill it only if the port it's using matches the port returned by the API call.