void (boolean deleteLockFile) { var serverChannel = myServerChannel; myServerChannel = null; if (serverChannel != null) { if (LOG.isDebugEnabled()) LOG.debug("Cleaning up"); Suppressions.runSuppressing( () -> serverChannel.close(), () -> { if (myRedirectedPortFile != null) { Files.deleteIfExists(myRedirectedPortFile); } }, () -> Files.deleteIfExists(myPortFile), () -> { if (deleteLockFile) { Files.deleteIfExists(myLockFile); } }); } }