[fix][io/posix] close and shutdown missing
[fix][io/posix] close or shutdown on error
[feature] layer chain destroy and free