Fixed garbage collection for cloudflash : CSH-511