Improve error handling in load-rom.