No, it is not on-topic so you did The Right Thing™ and so did the close and delete voters. A moderator had to clear a spam flag which caused an undelete of the post but another 3 delete voters rectified that. Otherwise the Roomba would have got to it in 10 days.
Your close vote triggered the creation of a close vote review but as that didn't get any reviewers in 4 days, it was invalidated. I speculate that that caused the close (1) to be restored to a plain close causing you to believe your close vote was cleared.
However, it takes a bit longer for a close vote to age away, 14 days to be precise as is explained in What happened to my close vote?. You can check your close votes in your profile but it doesn't show if they are invalidated or not.
If you run into a question that is on low traffic tags (anything not in PHP or RegEx) that needs close votes you better seek assistance in chat (for example SOCVR but check their FAQ first) instead of solely relying on reviewers, as that close vote queue never gets cleared in 6 to 8 weeks (where are you reviewers?).