Implementing IDisposable interface for PersistentVM class as it is causi...

...ng OOM exceptions.