close on escape or focus lost