Unfortunately, it looks like this recently closed question was not well understood. Here is the typical output:
run: Trying to Remove JDialog Remove
There is a timeout defined in the AppContext before some resources will be released finally. This is set to something like 5 seconds. Thus if you wait for another five seconds also the context will dispose the (last) reference to your dialog.
AppContext
wins = null; Thread.sleep(5000);