Fix task runner to cleanup the db at the end so that the queue won't get
blocked by failed jobs.