Make MatterControl exit if errors occur.