in the course of a nearly two-decade career as a clandestine operative , ambler had occasionally been taken captive-it had happened in chechnya and in algeria-and he had been subjected to periods of solitary confinement .