shutdown and re-init