Use several ForceTerminalBack in a row, depending on how deep in the terminals you are. It WILL close the terminal if you perform it on the master terminal.
So, if you are three terminals deep, do this in the result script box:
ForceTerminalBackForceTerminalBackForceTerminalBack
The terminal will close.