add a number of checks on system sanity that happen between each step in engine_step.
Former-commit-id: 70bc02755eb2c0d36163afa582ef8338bb9b042e
Former-commit-id: 70bc02755eb2c0d36163afa582ef8338bb9b042e
mentioned in commit 08902432
·mentioned in commit 08902432