[Native-Image] Port is not freed under Rosetta 2
Under Rosetta 2, hard kills in the native image cause the allocated ports not to be released and assigned to a process that no longer exists. The only workaround is to restart the operating system.
Possibly https://github.com/oracle/graal/issues/2666 is a fix for the problem.