Handle disconnect events with a call back