Previous method only worked for a normal shutdown, and didn't include when the server enters a closing state due to watchdog crashes This is the correct variable to detect the server is in the middle of shutdown process
953 B
953 B