Properly dispose cursors (fixes #3)
Fixed missing time-distance after stop tracking (fixes #4)