better cleanup of idle hosts (thanks clenart)