Client seems to be working again, except for an error in shutdown.