Try a bit harder to disconnect and delete everything on tab close.