Fix disconnect on tab close in FF.