Be sure to shutdown instance when destroyed

This cleans up any resources held by the instance.

Change-Id: I669264d01c5e77b6cd59cab807e15e9bbf24c16d
Signed-off-by: Robert Varga <rovarga@cisco.com>
Merge "Be sure to shutdown instance when destroyed"