Clean up puts.
Rescue IOError & Bad File Descriptor in each_frame