Fix memory leak while destroying the viewer.
fix .close() called after .destroy() + spacing
Improve comment for destroy() method.
Merge pull request #421 from henri-astre-msft/memory_leak

Fix memory leak while destroying the viewer.