Disconnect when tab is closed. Closes #18