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