Reset boolean on close function, this fixes #242 and #259

- I have added a false boolean on close function. Basically this boolean is responsible for closing the dropdown or not via closeUnlessMouseIsOverDropdown function.