Add some magic to close clients after a certain amount of data has been sent.