Exit program if a connection to the daemon can't be established