Trap SystemExit in cli/install for --json
Handle psycosat import error
Trap SystemExit from get_index for --json