I flagged a question as an exact duplicate, but it was marked invalid and then the question was closed? Was my flag valid or not?
Your flag might have been marked invalid by another mod but closed later by me. (There's a ~24 hour gap between the time the flag was marked invalid and the time the post was closed).
I'd assume the post might have been voted to close after your flag was marked invalid and was picked up by me to close.