Added logging of unknown states similar to the logging in `environ.rb`