Pass open() exceptions in fits.open.

Patch for #2756.  See discussion there.