set exit code to 1 when process finishes with unfinished plan (BEM-670)