COmmit before the end