       socket.disconnect()
 
     do callback
+    return
 
   start: (callback) ->
     unless callback

    @subscribeSocket socket, from

    @connectPort socket, to, edge.to.port, edge.to.index, true, (err) =>
      return callback err if err
      @connectPort socket, from, edge.from.port, edge.from.index, false, (err) =>
        return callback err if err

        @connections.push socket
        callback()

  removeEdge: (edge, callback) ->
    for connection in @connections

    for processId, process of @processes
      instance = process.component
      instance.network.setDebug active if instance.isSubgraph()
    return

module.exports = BaseNetwork
