remove registered shutdown function