Add error check on urlmagic.