ID 426888 - Launching a Katana --script subprocess crashes with aboutToQuit error

Follow

Problem summary
In the Python tab, launching a Katana subprocess with the --script launch mode crashes with the error:
[ERROR python.root]: An AttributeError occurred in "RecordItemModel.py": 'NoneType' object has no attribute 'aboutToQuit'
Customer reported version
katana.3.2v2

Customer reported platform
centos7

Steps to reproduce
1. Create a Python file, /tmp/subprocessCommand.py, with:
print('TEST SUBPROCESS')
2. In the Python tab, run:
import subprocess
CMD = 'katana --script /tmp/subprocessCommand.py'
subprocess.Popen(CMD, shell=True)
Make sure to change 'katana' to the path of your katanaBin installation.

Expected behavior
'TEST SUBPROCESS' is printed in the terminal.

Actual behavior
The Katana subprocess crashes with the error: 
[ERROR python.root]: An AttributeError occurred in "RecordItemModel.py": 'NoneType' object has no attribute 'aboutToQuit'
    Traceback (most recent call last):
      File "python/Main/Main.py", line 443, in <module>
      File "python/Main/Main.py", line 409, in __main
      File "MainScript.py", line 40, in Main
      File "MainCommon.py", line 97, in SetupVirtualKatanaUI
      File "Tabs/__init__.py", line 8, in <module>
      File "Tabs/BaseTab.py", line 9, in <module>
      File "Widgets/__init__.py", line 27, in <module>
      File "Util/__init__.py", line 56, in <module>
      File "Util/LogRecordItemModel.py", line 249, in <module>
      File "Util/LogRecordItemModel.py", line 187, in __init__
      File "Util/RecordItemModel.py", line 103, in __init__
    AttributeError: 'NoneType' object has no attribute 'aboutToQuit'

Workaround
Using the "env" arg of subprocess.Popen() prevents the crash from occurring. For example:
import subprocess
import os

# subprocessCommand.py is a file containing "print('TEST SUBPROCESS')"
CMD = 'katana --script /tmp/subprocessCommand.py'

env = os.environ.copy()
subprocess.Popen(CMD, shell=True, env=env)

However, this is not a good option if you wish to launch Katana in --script launch mode in a detached subprocess. 

Reproduced by support
This bug has been reproduced in:
Katana 3.5v2 - CentOS 7, Windows 10
Katana 3.5v1 - CentOS 7, Windows 10
Katana 3.2v4 - CentOS 7, Windows 10
Katana 3.2v1 - CentOS 7, Windows 10
Katana 3.1v1 - CentOS 7, Windows 10

Unable to reproduce bug in:
Katana 3.0v9 - CentOS 7, Windows 10
Katana 3.0v1 - CentOS 7, Windows 10
Katana 2.5v1 - CentOS 7, Windows 10
Katana 2.0v1 - CentOS 7
Katana 1.6v3 - CentOS 7

    We're sorry to hear that

    Please tell us why