TEZ-1445. Add more logging to catch shutdown handler race conditions. (hitesh)