The writ of habeas corpus shall be granted without delay and free of costs. The privilege of the writ of habeas corpus shall not be suspended except by the Governor and then only when the public safety requires it in case of war, rebellion, insurrection or invasion.