added a disconnect event