This leaks a process handle on the remote side. You should use `session.sys.process.getpid` instead