gui: Do not prune stats, if not running

Signed-off-by: Michael Buesch <m@bues.ch>