sync store before closing tlog

Maybe not use default values for flush and store.  This is the type of decision that you need to take very consciously to avoid mistakes.