fix to ensure that instances are terminated on version mismatch error

DO not merge in