Check whether the Timer is started or not. Once the Timer is started, it cannot be stopped without calling close.
bool started = false;