Remove self on shutdown