Any officer who delivers to the agent for extradition of the demanding state a person in his custody under the Governor’s warrant, in wilful disobedience to section 54-166, shall be fined not more than one thousand dollars or be imprisoned not more than six months or both.