Fix error checks for offline transfer and remove unneeded debug output

This PR adds needed error checks.