You shouldn't be withdrawn from a queue at all just from leaving the game in the background..

The only way you'd withdraw would be if you missed the ding and timed out of hitting the accept button in the 45 seconds. Or your in a party and someone else joined/left or withdrew.

It doesn't require frequent checks or anything you can be tabbed out for hours and still be queued.