Polishing send() (with some error-checking!)