Handle disconnects.