another attempt at closing queues opened by the ram