close perf window when disable, this is needed for instantApply perf window.