[upstream] Fix potential error in dhclient shutdown.