How to handle a SIGTERM February 4, 2023 by Tarik Yes, you can register a shutdown hook with Runtime.addShutdownHook().