deployment: Fix bad if/then/else in deployment shutdown