Added a shutdown cycle