Register shutdown hook at setup