exit program if only memory usage control thread is running

At least on my tiny netbook, the python interpreter does not exit because of `MemoryWatcher` still running in the background.