Stability analysis of regenerative queues