Destroy client handles after they're closed

Make sure the connection to the RPC service is shutdown and
cleaned up when loc_close() is invoked.

[mikeioannina]: Apply for AMSS 50000

Change-Id: I4f8b4d0aa3c2ff9ca5baf4ac07d31aa2e77d6721
Merge remote-tracking branch 'cm/cm-11.0' into HEAD