Added code to close the groupBy tag search dialog if the user clicks off it.