Add better error checking when loading invalid hex files