Inform the client when it can clear memory. Otherwise we'll collect memory forever.
Show the current status in the console box. Also fix a crash.
Fixes for Android/Clang