Keep track of debug handle too. (bug 1223989)