As mentioned elsewhere, don't swallow errors silently. Log a warning or an error instead.