shutdown isn't used in this function.