adding a shutdown call