Perhaps there could be a reduced amount of exp for an unsuccessful casting of a spell. You're still learning something from it, but you're not learning as much as if the spell had been successful.