If a criminal prosecution has been instituted against the person under the laws of this state and is still pending, the governor, at the governor's discretion, either may surrender the person on the demand of the executive authority of another state, or may hold the person until the person has been tried and discharged, or convicted and punished in this state.