Fixed piping bug. Multiple independent terminals can now be used
Actually kills shell processes when the tab is closed