Improve error handling when loading games

Fixed #5