Disconnect from EventSource when navigating to a different page