Added DISCONNECT handler.