Exception thrown when ProcessIdToSessionId() fails

Many security solutions forbid other program from accessing their own process. So if ProcessIdToSessionId() is failed, simply ignore it.