Cleanup of tasks file