Exit client on close