shows token modal when connection is lost, fixes #11