serf: set shutdown before goto