WaitForRemote(int) is being called by nxagent/x2goagent. Thus, I should be rather debugging that and not nxproxy...