Implement lingering of TCP-connection