Knowing What We Don't Know! Detecting and Learning Out-of-Distribution Data in the Open World