Fix error upon closing first client.