demo: Use _cleanup_key_ helper in appropriate demos

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
cli: Use _cleanup_key_ where appropriate

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>