Fixed concurrency problem when removing signals.