Added keyboard exit to all failure if branches.