Cleanup: Ensure Modelsim exits when not running in GUI mode