updated queue with close support.