Override flush method so changes are realized on disk.