Pass events handler to setup_networks functions

This is required to emit setup-related events during reset.