[SPARK-1860] Cleaning up the logs generated when cleaning directories.