 
     # Load the component for the process.
     @load node.component, node.metadata, (err, instance) =>
-      return callback err if err
+      if err
+        callback err
+        return
       instance.nodeId = node.id
       process.component = instance
       process.componentName = node.component

# components, attach sockets between them, and handle the sending
# of Initial Information Packets.
class BaseNetwork extends EventEmitter
  # Processes contains all the instantiated components for this network
  processes: {}
  # Connections contains all the socket connections in the network
  connections: []
  # Initials contains all Initial Information Packets (IIPs)
  initials: []
  # Container to hold sockets that will be sending default data.
  defaults: []
  # The Graph this network is instantiated with
  graph: null
  # Start-up timestamp for the network, used for calculating uptime
  startupDate: null

  # All NoFlo networks are instantiated with a graph. Upon instantiation
  # they will load all the needed components, instantiate them, and
  # set up the defined connections and IIPs.
  constructor: (graph, options = {}) ->
    super()
    @options = options
    @processes = {}
    @connections = []
    @initials = []
    @nextInitials = []
    @defaults = []
    @graph = graph
    @started = false
    @stopped = true

        data.subgraph = [node.id]
      @bufferedEmit type, data

    node.component.network.on 'ip', (data) ->
      emitSub 'ip', data
      return
    node.component.network.on 'process-error', (data) ->
      emitSub 'process-error', data
      return
    return

  # Subscribe to events from all connected sockets and re-emit them
  subscribeSocket: (socket, source) ->
