Update export_system_tables.py

added sys.exit within global function