Fixed close handler for browsers that support both mouse and touch events. Closes #151