exception handling while refreshing in rpc wallet 

 exception handling while refreshing in rpc wallet