Fix non-check for read() error in sync check before writing banner.