Fix closing of add folder dialog