Fix new address not saved issue

Save the new address to wallet immediately after issue the command
"getnewaddress"  to prevent not saving the new address to wallet when
the client not exit thru command "quit"