The judge granting the writ may order it to be issued by the Clerk of the Supreme Court, or of any circuit or chancery court, who shall immediately issue it on receiving the order; or, when not convenient to a clerk, the judge himself shall issue the writ. Any judge or chancellor who shall wilfully refuse or neglect to grant, or to issue and try, the writ of habeas corpus, when required by law to do so, shall be guilty of a high misdemeanor in office, and any clerk who shall not, when ordered, immediately issue the writ, and other process, shall be liable, on conviction thereof, to be removed from office; and the judge or clerk shall, in case of such neglect or refusal, be liable, civilly, to the party aggrieved.