Any officer who shall deliver to the agent for extradition of the demanding state a person in his custody under the warrant of the Governor in willful disobedience to section 9131 (relating to rights of accused person) shall commit a misdemeanor of the third degree.