Closes the stream. Performs cleanup.

def close_stream(self):
		""" Closes the stream. Performs cleanup. """
		self.keep_listening = False
		self.stream.stop_stream()
		self.stream.close()
		self.pa.terminate()