While a prisoner’s deposition is being taken, the prisoner shall remain in the custody of the officer having the prisoner in charge, who shall afford reasonable facilities for the taking thereof.