Fixed Stats windows not closing with IDE