It is illegal in Qatar for an employer to hold or keep your passport. YOU can raise HELL if they do so but, you still need them to get you an exit/re-entry anytime you go out of the country.