main: Separate out the two abortboot() functions