Incorrect error reporting + abort threads on exit.
Use QJson for decoding login data.