Enable the sync disconnect on unload option on the client side. Help fix issues with disconnect event not properly firing