Make unload_all_and_quit work.