I got the same problem and I propose this idea. Since it has only 2GB of ram I think it is a matter of memory availability: the more apps are running the more N9 slows down to swap memory till it hangs.
Things got worse with Android 7 since it has a bigger footprint than Android 5.
Now mine it...