Added function to close all opened windows from a tab