Changed tsclient to use the errormessage callback when getting a batch finished message