Issue #34. Implemented mechanism so the socket layer will notify the tcp that local closing started.