def stop(net): net.stop() if EventsManager.t_start is not None: EventsManager.t_start.cancel() EventsManager.stopClock()