logout automatically on exit unless curl failed earlier