Fix crash on cleanup of spy messaged concurrently