don't leak the copy if not valid

not really important ... we are going to exit if this happens ... but still