TS/JPM: more defensive close (can be called more than once, even if not initialized properly)
TS/JPM: closes Index on KeyboardInterrupt (for diagnostic purposes)