flush $stdout after writing non-whitelisted ip