I don't really like to do this, but if you'll post the code you were using before the changes that were made in order to incorporate the code that I wrote, then I'll go through the code and re-write it as necessary.

It looks to me like you've got a conflict in the code somewhere, since you stated that you had a silent whois running previous to the incorporation of my code, and now the whois is no longer silent.