How can you close a window whose name is variable

I was trying to have a script that closes an ichat video window. I only have one ichat window open at a time. I could say
close window “video chat with icedtrip”
but, the person I am talking to is variable. I tried this, but no luck. Any idaes?

tell application "iChat"
	get name of accounts
	set accountName to name of accounts
	close (window whose name is "Video Chat with" & accountName)
end tell

you say you only have one window open at a time so :

tell window 1 to close

should work fine