fixed the map/files objects not being purged for more than one task - fixes #4