tasks for different handlers. Add a callback from berkeley db to delete log files that are no longer needed.