I get a similar bug sometimes. If I search for a match without finding one for an extended period, I get kicked offline. Are you finding matches when this happens? If not, my best guess is that DOA5 thinks that if you aren't getting matches then you must be offline, and since you actually are it'll correct that.