Fixed memory leak, send disconnect message to active client when reconnecting