YARN-42. Modify NM's non-aggregating logs' handler to stop properly so that NMs don't get NPEs on startup errors. Contributed by Devaraj K. svn merge --ignore-ancestry -c 1380954 ../../trunk/