Added new condition for restart network interface.