Close updating window correctly.