open a window and stop