Enforce consistent exit behavior in postdeploy.py.