Made the closequeu for ocmpoenents auto handle their closing