TCP: closing listening socket now works again. Fixed #150.