Modify Animation.prototype.terminate