Fix RawRidFile fdopen assert crash

Rather than assert it might be better to handle fdopen()
calls that fail with more grace.  Especially since the
file wasn't being closed.

Ugh.