Catch IOError in addition to the other errors being caught for each_frame