Frame: add attribute 'code' for close frame