Fixed UnknownElementError not being caught or defined.
Fixed errors not being able to be returned.