There are some ‘cleanup’ calls that I want called when an Ada application is shutdown/killed.

For instance if I was in java, I would do something like this to achieve the effect of having something called at shutdown:

Runtime.getRuntime().addShutdownHook(new Thread(){ public void run(){ method(); } });

Is there anything similar in Ada or another way to achieve this?