Add clean stop functionality to FrameIO class.