fix bug that produced exceptions if a tss command is running while closing
fix bug that produced exceptions if a tss command is running while closing

Phaiax/ArcticTypescript,Phaiax/ArcticTypescript,Phaiax/ArcticTypescript,Phaiax/ArcticTypescript