Prevent multiple free() calls breaking the reference count
Fix some framed channel issues