Improve error handling in OEGameCore.