Fix a crash that would happen when attempting to unload the app_queue module.