Restore termio in more exception cases