Using standard IOError to handle problems opening dump files