fix error handling in send and relay fw