def METHOD_NAME(self):
    """
    Method for ending the sniffer capture.
    Should stop background capturing, No further file I/O in capture file.
    """
    if self.is_active:
        self.is_active = False
        if self.subprocess:
            self.subprocess.terminate()
            self.subprocess.wait()