docs: def finalize(self, outcome=None):
          """Finalize state
  
          This method is called when the run method finishes
  
          :param rafcon.core.logical_port.Outcome outcome: final outcome of the state
          :return: Nothing for the moment
          """
  
          # Set the final outcome of the state
          if outcome is not None:
              self.final_outcome = outcome
  
          # If we are within a concurrency state, we have to notify it about our finalization
          if self.concurrency_queue:
              self.concurrency_queue.put(self.state_id)
  
          logger.debug("Finished execution of {0}: {1}".format(self, self.final_outcome))
  
          return None