Overlays: Fixed race condition related to clicking on the close button
Merge pull request #3746 from pjackson28/overlayfixcloseclick

Overlays: Fixed race condition related to clicking on the close button