Add unload handler to disconnect WC session.