<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):
 """ Stops and joins readthread. :return: Nothing """

        self.keep_reading = False
        if self.readthread is not None:
            self.readthread.join()
            self.readthread = None