On restart or `pkill -9 webexec` the pid file is left and the process is not running. Maybe the solution is to stop managing a pid file and use the socket file to check if the process is running.