what happens when a writ of habeas corpus is denied