added rescue condition to stty session save