Inicializando e finalizando um Script

 

function shutdown ( ) {
. . .
}