Authorization windows close function