If a new session was started at a later point, stopping the casting via
the extension popup wouldn't be registered by the application causing
subsequent errors when sending messages.