fix for race condition when shutting down a multi