added test for IOException thrown by .send()