Unregister mock in destructor