Added some logic so retries on recreating queue are not infinite.