Implement cleanup method in driver

Supports the cleanup method of the driver interface.

Change-Id: Ie219524e6b64b76ac3c134b4b36f63c568287f7a