Add "-w" option to "close" command to allow closing parent window