However if you configure the write flushing setting it will flush after every write. This significantly slows down the node during sync, but is of little consequence after you are caught up. With the enabled the node closes quickly. Otherwise it's up to the operating system.