Added LEAVE command processing in server