completes client connect and disconnect events