auto close commit dialog