MAPREDUCE-3614. Fixed MR AM to close history file quickly and send a correct final state to the RM when it is killed. Contributed by Ravi Prakash. svn merge --ignore-ancestry -c 1296747 ../../trunk/