Cosmetic fix.
Fixed to return amount of data to be sent by closeConnection().