These days it is mandatory to surrender ID and cancel the visa. But if you go and stay out of Doha more than 180 days it stands cancelled automatically but you may find difficulty in getting visa for other GCC countries.