One Day Cookie on Close

Added dropping a one day cookie when the popup is closed using the X
button at the top right.