Added CloseAll and CloseAllExcept functionality.