Returns the pid of the process running the command, or nil if the application process died.
We‘re not using @mutex.synchronize to avoid the weird "<internal:prelude>:10" line which messes with backtraces in e.g. rspec
[Validate]