target: add back error handling in transport_complete_task