ADDED: New function to close connection for all queues (even when they are not in listening mode)