fix hang in remotecall_fetch with error. fixes #3599