def METHOD_NAME(self, abort=False):
    '''
    Indicate the end of a measurement.
    FIXME: The following is disabled due to lack of exception catching.
    This will decrement the internal measurement counter if abort=False,
    and set it to 0 in abort=True. If the counter reached zero (e.g. the
    last measurement was stopped, it will emit the 'measurement-end'
    signal.
    '''
    if abort:
        self._measurements_running = 0
    elif self._measurements_running > 0:
        self._measurements_running -= 1
    if self._measurements_running == 0:
        self._set_status('stopped')
        # Handle callbacks
        self.run_mainloop(1, wait=False)