rmnetcli: Fix use after free during deinit

Fix use-after-free cause by a double cleanup.
Cleanup will now be dependent on API used.

Change-Id: I7e3d31eec23157eb66bcf5661fb3549c5fd7cd04
1 file changed