Made sure a skill failed when the corresponding script function has an error.