Update connection.py

Note. add system.set_parent for self.running = False