Update background.cpp

PeriodicTask constructor new the object theRunner,but destructor don't delete,will be a global memory leak(when i used valgrind checking my client driver app).