remove stray sys.exit, handle creds expiring (loop and log)