Close Trades on Killed System

Is there a way or can a way be created to close positions on systems that have been killed? I wasn’t smart enough to realize that I needed to close positions before killing a system.

A way to change the name to say something like "Simple Volatility, Killed: 2017-08-16 13:00:57 ET"