Better error handling when sending.