[ fix ] added handling of closed and error situations for reading and writing in posix io layer
[fix] shutdown sequence
[fix] free the layer's datastructure and close the socket that may have been opened
[feature] added proper layer chain destroy and free