support get_context failing to return a pid for a window

Sometimes get_context() fails to find a pid.  We should gracefully handle this error and eventually fix the issue.