Fix two problems

1.do not send commit signal if it came from old leader
2.record the value of the commit result before remvoe it