Changed CMD_EXIT to CMD_QUIT