Change: Register shutdown hook callback as a weakly referenced one