Harden management script against ipengine crashes.