code: def end_script(self):
          
  
          if self.remote_bridge.status not in (BRIDGE_STATUS.RECEIVED, BRIDGE_STATUS.WAITING):
              return [1] #FIXME: State change
  
          self.remote_bridge.status = BRIDGE_STATUS.RECEIVED
          return [0]
docs: Indicate that we have finished receiving a script.