Don't crash on the platform-api session cleanup at EOS.