wrap clear feature on marker close inside a setTimeout to make leaflet happy