Return 2 if contacting the daemon failed.