Function to closing window when logging out

(The calendar window)