add file_sync_and_close_all()

ignoring errors for now

Signed-off-by: Janos Laube <janos.dev@gmail.com>