[feature] added proper layer chain destroy and free