added deconstuctor to the clock and changed how it loop so it wont throw exception when python exits