Wait until compose window is completely closed