finish the commit