Summary: This commit adds the clear method to free resources manually if the workspace instance is referenced circularly.