Replace the assertion in checkConnected with just the
GenerationFailureException, since it depends on data from the client of the
library, rather than just being an internal check.