[PATCH resend 2/2] server: Destroy child window from another thread only if it's not running.