Log exception when loading from script