Make engine errors throw. Closes #164