Remove some gotos.

IOFile provides facilities for doing this as a member function. GetHandle shouldn't be necessary for anything in this file.