Resolved couple of issues:
1. Timer events were not get picked up by the parent, if no ID is specified to the timer.
   To resolve the issue, give the timer an unique-id and make it an object (instead of an pointer to the object).
2. The timer events were generated too quickly with 100 ms, and results into a crash on windows due to that. Because - we are deleting the progress-bar (if required)
3. Closing the progress-bar after the the termination of the target function/procedure (if debugged locally)