Close connection cleanly after cancelling recv().

Tulip's DataBuffer might not be suitable for our needs.