More error checking in daemon. Create the client