Wrap send() in an exception handler.