making shutdown's header have it return an int