Looks like I have solved the mystery. upon selection of date, close event on the date div is fired and the event is propagated up the DOM tree which results in window.close event.
Thanks.