Make sure we properly close when clicking on the mask