Smooth out the auto closing and optionally close all cells.