Sush,Vinay | Handle error response from Tally, minor refactoring/cleanup