Is there a way to know the value passed to exit() from within a shutdown function?
exit()
For example: