<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stop(self):
 """ Stop the execution of a benchmark. This instance cannot be used anymore afterwards. Timely termination is not guaranteed, and this method may return before everything is terminated. """

        self.stopped_by_interrupt = True

        if self.executor:
            self.executor.stop()