multiversion: ability to destroy singleton

To make the class testable, need the ability to destroy the singleton
instance or we only have one test case.  The method will throw an
exception whenever it is used under non CLI interface.

Change-Id: Id6f4e33f88d036823d2c3a2ea3a085b25a7fd082
Merge "multiversion: ability to destroy singleton"