Be more careful about catching fsync() errors