Commiting all before closing done for the night