Comment Comment by tadfisher You can install a shutdown hook to do cleanup like this. Runtime.getRuntime().addShutdownHook(...) parent tadfisher 2 years ago