binder: fix handling of error during copy