trapping close

some file obj do not receive the close request even when system has
initiated shutdown. what can i trap so that i can write my footer to the
file?

Ho Mun Chuen
xxxxx@pmail.ntu.edu.sg
@@ “Not everything that counts can be counted;
<” )~ and not everything that can be counted counts"
//\ … Albert Einstein