add a Close() method to Sender