Exit if validation fails

Currently, it is still proceeding
which means that the running version can
be updated even when a failure occurs.