fixed closeOverlay method
Merge pull request #391 from massiveart/bugfix/overlay-memory-leaks

fixed closeOverlay method