Terminate script on invalid switch