Site filtering criteria applied to site and SOS services (including MRB site type detection)

You should probably close the iterator and then the client.  I always forget to close the iterator, but the documentation always warns about closing it when done.