Move mini commands into main class file. Tail threads now die when tab is closed