Wrap data elements to prevent abnormal exit