perform close() after shutdown() in spanning_tree