Adding disconnect events.