<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_capture(self):
 """Stop listening for output from the stenotype machine."""

        super(Treal, self).stop_capture()
        if self._machine:
            self._machine.close()
        self._stopped()