Throw an error on "next" for the last message

This doesn't really do anything, it just prints an error instert of
getting a SEGV.