YARN-1152. Fixed a bug in ResourceManager that was causing clients to get invalid client token key errors when an appliation is about to finish. Contributed by Jason Lowe. svn merge --ignore-ancestry -c 1521292 ../../trunk/