add a shutdown task