JAL-4217 close internal frame on the swing thread to avoid deadlock