Cleanup whoisd main method