explain how to actually implement a shutdown