Added a close operation to the frame.