Connection wasn't actually closed on tab refresh/close