add send error checking in send_file() routine