Westport house sells for nearly $5 million