WifiStateMachine: Shutdown IpClient when exiting client mode

We should explicitly shutdown the previous IpClient instance when we
exit client mode to cleanup its internal registrations.

Bug: 77999594
Test: Unit tests
Test: WifiManagerTest ACTS tests
Change-Id: Ic0650c40f5e7544b886bc774010dd277cfd9d739
2 files changed