Catch the TypeError due to restart when processing data (#57)