Improve handling of control messages, ignore stop/quit if maximum number of execution steps has been set.