close nzwhv function