TEZ-1009. Fixes in log file roll-over (bikas)
TEZ-997. Internal Errror in am logs during dag shutdown. (hitesh)