Clean-up on shutdown.