Fix crash when removing an open MSC file

Closes #960 (closed)

Merge request reports