Made the whois server's logging and exception handling more robust