better cleanup after unsuccesful transfers