Gsf: add error checks on close.

We can fail on close for various reasons.  it's not common, but we
should catch it.